<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">租房信息</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">图片:</label>
                            <div class="col-xs-12 col-sm-8">
                                <img src="{$row.rental.image ?? ''}" width="150px" class="form-control-static" />
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">租房名称:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.rental.name ?? ''}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">地区:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.rental.city ?? ''}|{$row.rental.region|htmlentities}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">面积:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.rental.space ?? ''}m2</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">价格:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.rental.price ?? ''}/月</p>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">房东信息</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">姓名:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.lessor_name|htmlentities}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">手机号:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.lessor_mobile ?? ''}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">身份证:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.lessor_identify ?? ''}</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">租客信息</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">姓名:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.renter_name|htmlentities}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">手机号:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.renter_mobile ?? ''}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">身份证:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.renter_identify ?? ''}</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">交易信息</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">订单号:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.order_no|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">支付类型:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.type|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">押金:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.deposit|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">租金:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.renter_money|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">房东中介费:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.lessor_medium_money|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">租客中介费:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.renter_medium_money|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">租期:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{:$row.rent_start_date ? datetime("Y-m-d",$row.rent_start_date) :''} - {:datetime("Y-m-d",$row.rent_end_date)}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">租房地址:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.rent_address|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">租客支付总金额:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.renter_pay_money|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">房东支付总金额:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.lessor_pay_money|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">租客签约状态:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.state_text|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">房东签约状态:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.lessor_state|htmlentities}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">租客支付时间:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{:$row.renter_pay_time?datetime($row.renter_pay_time):''}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">房东支付时间:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{:$row.lessor_pay_time?datetime($row.lessor_pay_time):''}</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</form>